package vashion.azeroth.core.service.impl.item;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import vashion.azeroth.core.manager.item.ItemWriteManager;
import vashion.azeroth.core.item.pojo.ItemDO;
import vashion.azeroth.core.result.ApiResult;
import vashion.azeroth.core.service.item.ItemWriteService;

/**
 * Created by tingting on 15/8/31.
 */
@Service
public class ItemWriteServiceImpl implements ItemWriteService {

    @Autowired
    private ItemWriteManager itemWriteManager;

    @Override
    public ApiResult<Boolean> publishItem(ItemDO itemDO, long operateId) {

        return itemWriteManager.publishItem(itemDO, null, null, operateId);
    }
}
